import {defineStore} from 'pinia'
import { getUserInfoApi } from '../api/login'

export const useUserStore = defineStore('user',{
	state:() =>{
		return{
			userInfo:null

		}
	},
	actions:{
		async getUserInfoAction(){
			const res = await getUserInfoApi();
			if(res.code == 200){
				this.userInfo = res.data
			}
		}
	}
})